package day19.pack1;

public class JingDongProxy implements Phone {
    private Phone phone;
    public JingDongProxy(Phone phone) {
        this.phone = phone;
    }

    public int getPrice() {
        System.out.println("【前置增强】领取300元优惠券");
        int price = phone.getPrice();
        System.out.println("【后置增强】欢迎访问京东店铺，赠送精美手机套一个");
        return price + 1000;
    }
}
